From: Florian Müllner Date: Wed, 12 Nov 2014 19:49:24 +0000 (+0100) Subject: shellDBus: Add mode parameter to AcceleratorActivated signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1929 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6803528810296e3459bc0b7fb21a725626ecc881;p=gnome-shell.git shellDBus: Add mode parameter to AcceleratorActivated signal This will allow g-s-d to handle actions differently based on the current mode - namely, allow the power button when locked, but make sure to never show any dialogs in that case. https://bugzilla.gnome.org/show_bug.cgi?id=711682 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 147b5f4e9..7e45d84ad 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -196,7 +196,8 @@ const GnomeShell = new Lang.Class({ let connection = this._dbusImpl.get_connection(); let info = this._dbusImpl.get_info(); let params = { 'device-id': GLib.Variant.new('u', deviceid), - 'timestamp': GLib.Variant.new('u', timestamp) }; + 'timestamp': GLib.Variant.new('u', timestamp), + 'action-mode': GLib.Variant.new('u', Main.actionMode) }; connection.emit_signal(destination, this._dbusImpl.get_object_path(), info ? info.name : null,